package utils;

import lombok.Data;
/**
 * @author
 */
@Data
public class Message {

    private String sender;
    private String receiver;
    private String message;
    private String date;

    public Message(String sender, String receiver, String message) {
        this.sender = sender;
        this.receiver = receiver;
        this.message = message;
        this.date=null;
    }

    @Override
    public String toString() {
        return "Message{" +
                "sender='" + sender + '\'' +
                ", receiver='" + receiver + '\'' +
                ", data='" + date + '\'' +
                '}';
    }

    public Message() {
    }
}
